package com.typhoon;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.concurrent.CountDownLatch;
/**
 * 服务启动类
 *
 * @author Typhoon
 *
 */
public class ProviderServer {
    public static void main(String[] args) throws Exception {
        AbstractApplicationContext context = new ClassPathXmlApplicationContext("spring-root.xml");
        context.start();

        CountDownLatch count = new CountDownLatch(1);
        count.await();
        context.close();
    }
}
